﻿<%@ Page Title="Forgotten Password @ tbd.co.in" Language="C#" MasterPageFile="~/TBDHome.Master" Theme="HomeTheme" AutoEventWireup="true" CodeBehind="ForgottenPassword.aspx.cs" Inherits="OPMS_V1.AccessControls.ForgottenPassword" %>
<%@ Register Src="~/UserControls/Login.ascx" TagPrefix="login" TagName="login1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<login:login1 ID="LoginPanel" runat="server" />

    <asp:Label ID="lblHeading" runat="server" Font-Bold="True" Font-Size="24pt" 
        style="z-index: 3; left: 39px; top: 218px; position: absolute" 
        Text="Member Centre" ForeColor="#B32E43"></asp:Label>
    <asp:Label ID="lblLoginDetails" runat="server" Font-Bold="True" 
        Font-Size="19pt" ForeColor="#999999" 
        style="z-index: 1; left: 39px; top: 280px; position: absolute" 
        Text="Account Login Details"></asp:Label>
    
    <asp:Panel ID="pnlUserDetails" runat="server" 
        
        
        style="z-index: 1; left: 39px; top: 374px; position: absolute; height: 152px; width: 747px">
        <asp:Label ID="Label1" runat="server" 
        style="z-index: 1; left: 39px; top: 4px; position: absolute; height: 34px;" 
        
            Text="Please enter the email you registered with when you became a TBD member and we will send you your account login and password."></asp:Label>
    <asp:TextBox ID="txtEmail" runat="server" 
        style="z-index: 1; left: 260px; top: 50px; position: absolute; width: 279px" 
            ontextchanged="txtEmail_TextChanged" TabIndex="1"></asp:TextBox>
    <asp:Label ID="lblEmail" runat="server" Font-Bold="True" ForeColor="#666666" 
        style="z-index: 1; left: 140px; top: 50px; position: absolute" 
        Text="Email Address *"></asp:Label>
    <asp:RegularExpressionValidator ID="regexEmail" runat="server" 
        ControlToValidate="txtEmail" 
        ErrorMessage="Invalid Email Address. Must be in proper format: username@domain.com" 
        Font-Size="10pt" 
        style="z-index: 1; left: 260px; top: 70px; position: absolute" 
        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
    <asp:Button ID="btnForgotPassword" runat="server" 
        style="z-index: 1; left: 260px; top: 105px; position: absolute" 
        Text="Submit" CssClass="buttonStyling" Font-Bold="True" ForeColor="White" 
        onclick="btnForgotPassword_Click" TabIndex="2" />
        <asp:Label ID="lblEmailError" runat="server" Font-Size="10pt" ForeColor="Red" 
            style="z-index: 1; left: 259px; top: 71px; position: absolute" 
            Text="Please enter the email Address"></asp:Label>
    </asp:Panel>
    <asp:Panel ID="pnlRecordsExists" runat="server" 
        
        style="z-index: 1; left: 40px; top: 327px; position: absolute; height: 51px; width: 644px" 
        BackColor="#E1EFDE">
        <asp:Label ID="lblSentMessage" runat="server" 
    style="z-index: 1; left: 0px; top: 0px; position: absolute" 
    Text="Your details have been sent to " Font-Bold="True" ForeColor="#669900"></asp:Label>
        <asp:Label ID="lblsend" runat="server" 
            style="z-index: 1; left: 0px; top: 20px; position: absolute" 
            Text="You will shortly receive your login details." Font-Bold="True" 
            ForeColor="#669900"></asp:Label>
    </asp:Panel>

        <asp:Panel ID="pnlLogin" runat="server" 
            BorderColor="#CECECE" 
            
            
            
            
        style="z-index: 1; left: 809px; top: 310px; position: absolute; height: 267px; width: 258px" 
        BackColor="#E4E4E4">
            <asp:Label ID="lblSigninMessage" runat="server" Font-Bold="True" 
                Font-Names="Times New Roman" 
                style="z-index: 1; left: 8px; top: 11px; position: absolute" 
                Text="TBD Members" ForeColor="IndianRed"></asp:Label>
            <asp:Label ID="lblAccountName" runat="server" Font-Bold="True" 
                Font-Size="10.5pt" 
                style="z-index: 1; left: 10px; top: 63px; position: absolute" 
                Text="Account Login: "></asp:Label>
            <asp:TextBox ID="txtAccountName" runat="server" Font-Bold="True" 
                Font-Size="10pt" 
                style="z-index: 1; left: 10px; top: 84px; position: absolute; width: 169px" 
                TabIndex="3"></asp:TextBox>
            <asp:Label ID="lblPasswordMessage" runat="server" Font-Bold="True" 
                Font-Size="10.5pt" 
                style="z-index: 1; left: 10px; top: 126px; position: absolute" 
                Text="Password: "></asp:Label>
            <asp:TextBox ID="txtPassword" runat="server" Font-Bold="True" Font-Size="10pt" 
                style="z-index: 1; left: 10px; top: 147px; position: absolute; width: 169px;" 
                TabIndex="4" TextMode="Password"></asp:TextBox>
            <asp:LinkButton ID="lnkForgot" runat="server" Font-Size="10pt" 
                ForeColor="Black" 
                style="z-index: 1; left: 10px; top: 171px; position: absolute; height: 15px;" 
                TabIndex="6" onclick="lnkForgot_Click" 
                PostBackUrl="~/AccessControls/ForgottenPassword.aspx">Forgot Account Name/ Password?</asp:LinkButton>
            <asp:Button ID="btnLogin" runat="server" Font-Bold="True" 
                onclick="btnLogin_Click" 
                
                
                
                
                
                style="z-index: 2; left: 10px; top: 225px; position: absolute; width: 63px; height: 28px;" TabIndex="5" 
                Text="Login" ForeColor="White" CssClass="buttonStyling"/>
            <asp:RegularExpressionValidator ID="regexLoginName" runat="server" 
                ControlToValidate="txtAccountName" 
                ErrorMessage="Pattern do not match" 
                Font-Size="10pt" style="z-index: 1; left: 10px; top: 110px; position: absolute" 
                ValidationExpression="^[a-zA-Z0-9_@/.]*$"></asp:RegularExpressionValidator>

            <asp:Label ID="lblLoginError" runat="server" Font-Bold="True" Font-Size="10pt" 
                ForeColor="Red" style="z-index: 1; left: 10px; top: 190px; position: absolute" 
                Text="Your login attempt was not successful. Please try again."></asp:Label>
            <asp:Label ID="lblManageAds" runat="server" Font-Bold="True" Font-Size="10pt" 
                style="z-index: 1; left: 10px; top: 30px; position: absolute" 
                Text="Manage your Ads"></asp:Label>
        </asp:Panel>

<asp:Panel ID="pnlEmailNotExists" runat="server" BackColor="#FEE8E8" 
    
        style="z-index: 1; left: 39px; top: 313px; position: absolute; height: 42px; width: 744px">
    <asp:Label ID="lblRecordNotExists" runat="server" 
    style="z-index: 1; left: 0px; top: 0px; position: absolute" Font-Size="11pt" 
        ForeColor="Red"></asp:Label>
        <asp:Label ID="Label2" runat="server" Font-Size="11pt" ForeColor="Red" 
    style="z-index: 1; left: 1px; top: 21px; position: absolute" 
    
        Text="Did you register with a different email address? If not, please check that you entered your email address correctly and try again."></asp:Label>
</asp:Panel>
</asp:Content>
